package cn.wsalix.templet.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.anlaser.service.impl.SimpleServiceImpl;
import cn.wsalix.templet.entity.PageData;
import cn.wsalix.templet.form.PageDataForm;
import cn.wsalix.templet.repository.PageDataRepository;
import cn.wsalix.templet.service.PageDataService;

@Service("pageDataService")
@Transactional(readOnly = true)
public class PageDataServiceImpl extends
		SimpleServiceImpl<PageDataForm,PageDataRepository, PageData> implements PageDataService {

	@Autowired
	private PageDataRepository pageDataRepository;

	@Override
	public PageDataRepository getRepository() {
		return pageDataRepository;
	}

	@Override
	public String module() {
		return "/templet/pagedata";
	}

	@Override
	public PageData findByCodeOne(String code) {
		return pageDataRepository.findByCodeOne(code);
	}

	@Override
	public Class<PageData> getEntityClazz() {
		// TODO Auto-generated method stub
		return null;
	}

}
